package com.mpyy.dao.inventory;

import com.mpyy.pojo.DepotInfo;
import com.mpyy.pojo.InventoryCheck;
import com.mpyy.pojo.InventoryCheckDesc;
import com.mpyy.pojo.InventoryDesc;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value = ("inventoryCheckMapperDaoInter"))
public interface InventoryCheckMapperDaoInter {
    // 根据仓库查询库存明细
    List<InventoryDesc> searchCheck(String inveDescDepot);
    //库存商品编号查询库存
    List<InventoryDesc> searchCheckId(String inveDescId);
    //查询盘点单
    List<InventoryCheck> searchTakeStock();
    //根据盘点单号查询盘点明细商品
    List<InventoryCheckDesc> searchStatement(String invCheckId);
    //根据盘点单号查询盘点明细商品
    List<InventoryCheckDesc> searchStatementyp(String invCheckId);
    //根据盘点明细编号删除商品
    int updateCommodity(String invCheckDescId);
    //根据盘点单号删除盘点单
    int updateInventoryList(String invCheckId);
    //根据盘点单号删除盘点明细商品
    int updateInventory(String invCheckId);
    //查询盘点单
    List<InventoryCheck> searchInventorySurpluslosses();
    //根据选中盘点单号查询盘点明细
    List<InventoryCheckDesc> searchInventoryDesc(List <String> invCheckId);
    //插入盘点明细
    int updateInventoryCheckDesc(List <InventoryDesc> inventoryDescs);

    //根据批号查询库存表
    List<InventoryDesc> searchProidDesc(String inveDescBatchNum);

    List<InventoryCheckDesc> searchSta();

    int updateCheckDescId(String invCheckDescId);

    List<InventoryCheckDesc> serchCheckDesc(String invCheckId);
    //插入盘点单
    int updateInvenCheck(InventoryCheck inventoryCheck);

    List<DepotInfo> searchDepotInfowx();
    //根据商品编号查询商品库存
    List<InventoryDesc> searchDescProId(InventoryDesc inventoryDesc);

    int updateInvenDesc(List <InventoryCheckDesc> inventoryDescs);
    //修改状态
    int updateInvenCheckId(List <String> invCheckId);
    //查询已盘商品
    List<InventoryCheckDesc> serchHaveInventory(List <InventoryCheckDesc> checkDescList);
    //修改盘点数量
    int updateCheckNum(List <InventoryDesc> inventoryDescs);

    //插入变动明细报损
    int updateBreakage(InventoryCheckDesc inventoryCheckDescList);
    //插入变动明细报溢
    int updateOverflow(InventoryCheckDesc inventoryCheckDescList);
    List<InventoryCheckDesc> searchChane(List <String> invCheckId);
}
